#pragma once
#include <string>

enum JLogLevel
{
	JLogMessage,
	JLogWarning,
	JLogError
};

class JLogger
{
public:
	static void Init(const char* logFileDir);
	JLogger(void);
	~JLogger(void);
	static void Log(const char* msg,JLogLevel level);
	static void Log(const std::string msg,JLogLevel level);
private:
	static std::string LevelToStr(JLogLevel level);
	static std::string logFileName;
	static void WriteStrToFile(const char* msg);
};

